package com.ysw.rpc.common.constants;

/**
 * @author YinShangwen
 * @since 2023/4/10 9:41
 */
public interface RpcConstants {
    /**
     * 消息缓冲区大小
     */
    Integer MAX_BUFFER_SIZE = Integer.MAX_VALUE;
    /**
     * 魔数
     */
    Short MAGIC_NUMBER = 12299;
    /**
     * 元数据key
     */
    String METADATA_KEY = "y-rpc";
    /**
     * 元数据api key
     */
    String METADATA_API_KEY = "apis";
    /**
     * 元数据port key
     */
    String METADATA_PORT_KEY = "port";
    /**
     * 默认 instance id
     */
    String DEFAULT_INSTANCE_ID = "default";
}
